package com.zy.explore.sys.interfaces.frm;

import com.zy.explore.common.interfaces.frm.SortFieldFrm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * description 表(sys_op_log)的请求参数Frm对象
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2022年02月05日 10:17:27
 */
@ApiModel("表(sys_op_log)实体类查询Frm")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OpLogQueryFrm {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", example = "'1'")
    private String id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", example = "'1'")
    private String name;

    /**
     * 操作类型
     */
    @ApiModelProperty(value = "操作类型", example = "1")
    private Integer opType;

    /**
     * 是否执行成功（Y-是，N-否）
     */
    @ApiModelProperty(value = "是否执行成功（Y-是，N-否）", example = "'1'")
    private String success;

    /**
     * 具体消息
     */
    @ApiModelProperty(value = "具体消息", example = "'1'")
    private String message;

    /**
     * ip
     */
    @ApiModelProperty(value = "ip", example = "'1'")
    private String ip;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", example = "'1'")
    private String location;

    /**
     * 浏览器
     */
    @ApiModelProperty(value = "浏览器", example = "'1'")
    private String browser;

    /**
     * 操作系统
     */
    @ApiModelProperty(value = "操作系统", example = "'1'")
    private String os;

    /**
     * 请求地址
     */
    @ApiModelProperty(value = "请求地址", example = "'1'")
    private String url;

    /**
     * 类名称
     */
    @ApiModelProperty(value = "类名称", example = "'1'")
    private String className;

    /**
     * 方法名称
     */
    @ApiModelProperty(value = "方法名称", example = "'1'")
    private String methodName;

    /**
     * 请求方式（GET POST PUT DELETE)
     */
    @ApiModelProperty(value = "请求方式（GET POST PUT DELETE)", example = "'1'")
    private String reqMethod;

    /**
     * 请求参数
     */
    @ApiModelProperty(value = "请求参数", example = "'1'")
    private String param;

    /**
     * 返回结果
     */
    @ApiModelProperty(value = "返回结果", example = "'1'")
    private String result;

    /**
     * 操作时间
     */
    @ApiModelProperty(value = "操作时间起 yyyy-MM-dd HH:mm:ss", example = "2021-05-20 00:00:00")
    private String opTimeBegin;

    @ApiModelProperty(value = "操作时间止 yyyy-MM-dd HH:mm:ss", example = "2021-05-20 23:59:59")
    private String opTimeEnd;

    /**
     * 操作账号
     */
    @ApiModelProperty(value = "操作账号", example = "'1'")
    private String account;

    /**
     * 签名数据（除ID外）
     */
    @ApiModelProperty(value = "签名数据（除ID外）", example = "'1'")
    private String signValue;


    /**
     * 排序字段集合
     */
    @ApiModelProperty("排序字段集合")
    private List<SortFieldFrm> sortFields;

    /**
     * 分页查询参数，页码
     */
    @ApiModelProperty(value = "查询页", example = "1")
    private Integer pageNum;

    /**
     * 分页查询参数，每页数量
     */
    @ApiModelProperty(value = "每页数量", example = "10")
    private Integer pageSize;
}
